﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserProfileView.master" AutoEventWireup="true"
    CodeBehind="EducationWorkView.aspx.cs" Inherits="Churchtoolkit.Web.EducationWorkView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="tabContainer" runat="server">
    <table class="Details">
        <tr>
            <td class="header" colspan="2">
                <strong>Education information</strong>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Collage/University"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCollageUniversity" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldreqtxtCollageUniversity" runat="server" ErrorMessage="0001"
                    Text="*" ControlToValidate="txtCollageUniversity" ValidationGroup="EducationInformation"
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:DropDownList ID="ddlYear" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:RadioButton ID="rdbCollage" runat="server" Text="Collage" GroupName="Type" Checked="true" />
                <asp:RadioButton ID="rdbUniversity" runat="server" Text="University" GroupName="Type" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="footer">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="EducationInformation"
                                runat="server" />
                        </td>
                        <td align="right" valign="top">
                            <asp:Button ID="btnRemoveEducation" runat="server" ValidationGroup="EducationInformation"
                                OnClick="btnRemoveEducation_Click" Text="Remove" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnSaveEducation" runat="server" OnClick="btnSaveEducation_Click"
                                ValidationGroup="EducationInformation" Text="Save" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DataList ID="dlstEducationInformation" runat="server" OnItemCommand="dlstEducationInformation_ItemCommand"
                    OnItemDataBound="dlstEducationInformation_ItemDataBound" Width="100%">
                    <HeaderTemplate>
                        <table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("Type") %>'></asp:Label>
                                &nbsp;&nbsp;
                                <asp:Label ID="lblCollageUniversity" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                &nbsp;&nbsp;
                                <asp:Label ID="lblYear" runat="server" Text='<%# Eval("Year") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr align="right" valign="top">
                            <td class="footer">
                                <asp:Button ID="btnRemoveEducation" CommandName="btnRemoveEducation" CommandArgument='<%# Eval("EducationId") %>'
                                    runat="server" Text="Remove" />
                                &nbsp;&nbsp;
                                <asp:Button ID="btnEditEducation" CommandName="btnEditEducation" CommandArgument='<%# Eval("EducationId") %>'
                                    runat="server" Text="Edit" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnAddAnotherEducation" runat="server" OnClick="btnAddAnotherEducation_Click"
                    Text="Add another" />
            </td>
        </tr>
        <tr>
            <td class="header" colspan="3">
                <strong>Job information</strong>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Employeer"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmployeer" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldreqtxtEmployeer" runat="server" ErrorMessage="0001"
                    Text="*" ControlToValidate="txtEmployeer" ValidationGroup="JobInformation" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Position"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPosition" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldreqtxtPosition" runat="server" ErrorMessage="0001"
                    Text="*" ControlToValidate="txtPosition" ValidationGroup="JobInformation" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label runat="server" Text="From"></asp:Label>
                &nbsp;&nbsp;&nbsp;
                <ct:DateControl runat="server" ID="uxFrom" CssClass="Date" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:RadioButton ID="rdbTo" runat="server" Text="To" GroupName="EmployedTo" Checked="true" />
                &nbsp;&nbsp;
                <ct:DateControl runat="server" ID="uxTo" CssClass="Date" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:RadioButton ID="rdbCurentlyWorkThere" runat="server" Text="CurentlyWorkThere"
                    GroupName="EmployedTo" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="footer">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:ValidationSummary ID="ValidationSummary2" ValidationGroup="JobInformation" runat="server" />
                        </td>
                        <td align="right" valign="top">
                            <asp:Button ID="btnRemoveJob" runat="server" ValidationGroup="JobInformation" OnClick="btnRemoveJob_Click"
                                Text="Remove" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnSaveJob" runat="server" CssClass="ui-button" ValidationGroup="JobInformation"
                                OnClick="btnSaveJob_Click" Text="Save" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:DataList ID="dlstJobInformation" runat="server" OnItemCommand="dlstJobInformation_ItemCommand"
                    OnItemDataBound="dlstJobInformation_ItemDataBound" OnSelectedIndexChanged="dlstJobInformation_SelectedIndexChanged"
                    Width="100%">
                    <HeaderTemplate>
                        <table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label ID="lblEmployeer" runat="server" Text='<%# Eval("Employeer") %>'></asp:Label>
                                &nbsp;&nbsp;
                                <asp:Label runat="server" Text="As"></asp:Label>
                                &nbsp;&nbsp;
                                <asp:Label ID="lblPosition" runat="server" Text='<%# Eval("Position") %>'></asp:Label>
                                <br />
                                <asp:Label runat="server" Text="From"></asp:Label>
                                &nbsp;
                                <asp:Label ID="lblFrom" runat="server" Text='<%# Eval("EmployedFrom") %>'></asp:Label>
                                &nbsp;
                                <asp:Label ID="Label1" runat="server" Text="To"></asp:Label>
                                &nbsp;
                                <asp:Label ID="lblTo" runat="server" Text='<%# Eval("EmployedTo") %>'></asp:Label>
                            </td>
                        </tr>
                        <tr align="right" valign="top">
                            <td class="footer">
                                <asp:Button ID="btnRemoveJob" CommandName="btnRemoveJob" CommandArgument='<%# Eval("JobId") %>'
                                    runat="server" Text="Remove" />
                                &nbsp;&nbsp;
                                <asp:Button ID="btnEditJob" CommandName="btnEditJob" CommandArgument='<%# Eval("JobId") %>'
                                    runat="server" Text="Edit" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnAddAnotherJob" runat="server" OnClick="btnAddAnotherJob_Click"
                    Text="Add another" />
            </td>
        </tr>
    </table>
</asp:Content>
